package com.jz.community.moduleshopping.integralGoods.bean;

import com.jz.community.basecomm.bean.baseCommInfo.PageInfo;

import java.util.List;

/**
 * Created by Tony.Fan on 2018/7/2 09:54
 */
public class IntegralGoodsInfo {


    /**
     * _embedded : {"content":[{"id":15,"title":"猕猴桃-预售","icon":"http://goodspics.oss-cn-beijing.aliyuncs.com/1529477672065.jpg?Expires=1844837663&OSSAccessKeyId=LTAIyu9pVcg3oPg9&Signature=lNaVvKfFM3UwjaZGwdwruz5UtgU%3D","saleCount":11,"buyType":1,"price":null,"stock":null,"skuProperties":[{"id":12,"status":null,"version":0,"createTime":"2018-06-20 14:55:00","updateTime":"2018-06-20 14:55:00","name":"重量","propertyValues":[{"id":17,"status":null,"version":0,"createTime":"2018-06-20 14:55:00","updateTime":"2018-06-20 14:55:00","propertyValue":"1kg"}],"sort":0}],"skuInfos":[{"id":17,"status":null,"version":1,"createTime":"2018-06-20 14:55:00","updateTime":"2018-06-20 14:55:05","price":33,"discountPrice":22,"stock":111,"charges":2,"code":null,"spStr":"重量|1kg","spidStr":"12|17","catNum":0}],"_embedded":{"category":{"id":16,"name":"休闲零2食","shopType":2,"platformId":2,"platformInfo":"http://microservice.shoppingyizhan.com/dic/code-table/2","_embedded":{"childCategory":[]},"links":{"self":{"href":"http://microservice.shoppingyizhan.com/gds/goods-categories/16"},"platformInfo":{"href":"http://microservice.shoppingyizhan.com/dic/code-table/2"}}}},"links":{"self":{"href":"http://microservice.shoppingyizhan.com/gds/goods-sqrs/15"},"content":{"href":"http://microservice.shoppingyizhan.com/gds/goods/content/15"},"shopInfo":{"href":"http://api.shoppingyizhan.com/shp/shops/79"}}}]}
     * _links : {"first":{"href":"http://microservice.shoppingyizhan.com/gds/goods-sqrs?filter=isuid%3A%3A4&page=0&size=1&sort=createTime,desc"},"self":{"href":"http://microservice.shoppingyizhan.com/gds/goods-sqrs?filter=isuid%3A%3A4&page=0&size=1&sort=createTime,desc"},"next":{"href":"http://microservice.shoppingyizhan.com/gds/goods-sqrs?filter=isuid%3A%3A4&page=1&size=1&sort=createTime,desc"},"last":{"href":"http://microservice.shoppingyizhan.com/gds/goods-sqrs?filter=isuid%3A%3A4&page=10&size=1&sort=createTime,desc"}}
     * page : {"size":1,"totalElements":11,"totalPages":11,"number":0}
     */

    private EmbeddedBeanXX _embedded;
    private PageInfo page;

    public EmbeddedBeanXX get_embedded() {
        return _embedded;
    }

    public void set_embedded(EmbeddedBeanXX _embedded) {
        this._embedded = _embedded;
    }

    public PageInfo getPage() {
        return page;
    }

    public void setPage(PageInfo page) {
        this.page = page;
    }

    public static class EmbeddedBeanXX {
        private List<ContentBeanX> content;

        public List<ContentBeanX> getContent() {
            return content;
        }

        public void setContent(List<ContentBeanX> content) {
            this.content = content;
        }

        public static class ContentBeanX {
            /**
             * id : 15
             * title : 猕猴桃-预售
             * icon : http://goodspics.oss-cn-beijing.aliyuncs.com/1529477672065.jpg?Expires=1844837663&OSSAccessKeyId=LTAIyu9pVcg3oPg9&Signature=lNaVvKfFM3UwjaZGwdwruz5UtgU%3D
             * saleCount : 11
             * buyType : 1
             * price : null
             * stock : null
             * skuProperties : [{"id":12,"status":null,"version":0,"createTime":"2018-06-20 14:55:00","updateTime":"2018-06-20 14:55:00","name":"重量","propertyValues":[{"id":17,"status":null,"version":0,"createTime":"2018-06-20 14:55:00","updateTime":"2018-06-20 14:55:00","propertyValue":"1kg"}],"sort":0}]
             * skuInfos : [{"id":17,"status":null,"version":1,"createTime":"2018-06-20 14:55:00","updateTime":"2018-06-20 14:55:05","price":33,"discountPrice":22,"stock":111,"charges":2,"code":null,"spStr":"重量|1kg","spidStr":"12|17","catNum":0}]
             * _embedded : {"category":{"id":16,"name":"休闲零2食","shopType":2,"platformId":2,"platformInfo":"http://microservice.shoppingyizhan.com/dic/code-table/2","_embedded":{"childCategory":[]},"links":{"self":{"href":"http://microservice.shoppingyizhan.com/gds/goods-categories/16"},"platformInfo":{"href":"http://microservice.shoppingyizhan.com/dic/code-table/2"}}}}
             * links : {"self":{"href":"http://microservice.shoppingyizhan.com/gds/goods-sqrs/15"},"content":{"href":"http://microservice.shoppingyizhan.com/gds/goods/content/15"},"shopInfo":{"href":"http://api.shoppingyizhan.com/shp/shops/79"}}
             */

            private String id;
            private String title;
            private String icon;
            private int saleCount;
            private int buyType;
            private String price;
            private String stock;
            private EmbeddedBeanX _embedded;
            private LinksBeanX links;
            private List<SkuPropertiesBean> skuProperties;
            private List<SkuInfosBean> skuInfos;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getIcon() {
                return icon;
            }

            public void setIcon(String icon) {
                this.icon = icon;
            }

            public int getSaleCount() {
                return saleCount;
            }

            public void setSaleCount(int saleCount) {
                this.saleCount = saleCount;
            }

            public int getBuyType() {
                return buyType;
            }

            public void setBuyType(int buyType) {
                this.buyType = buyType;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getStock() {
                return stock;
            }

            public void setStock(String stock) {
                this.stock = stock;
            }

            public EmbeddedBeanX get_embedded() {
                return _embedded;
            }

            public void set_embedded(EmbeddedBeanX _embedded) {
                this._embedded = _embedded;
            }

            public LinksBeanX getLinks() {
                return links;
            }

            public void setLinks(LinksBeanX links) {
                this.links = links;
            }

            public List<SkuPropertiesBean> getSkuProperties() {
                return skuProperties;
            }

            public void setSkuProperties(List<SkuPropertiesBean> skuProperties) {
                this.skuProperties = skuProperties;
            }

            public List<SkuInfosBean> getSkuInfos() {
                return skuInfos;
            }

            public void setSkuInfos(List<SkuInfosBean> skuInfos) {
                this.skuInfos = skuInfos;
            }

            public static class EmbeddedBeanX {
                /**
                 * category : {"id":16,"name":"休闲零2食","shopType":2,"platformId":2,"platformInfo":"http://microservice.shoppingyizhan.com/dic/code-table/2","_embedded":{"childCategory":[]},"links":{"self":{"href":"http://microservice.shoppingyizhan.com/gds/goods-categories/16"},"platformInfo":{"href":"http://microservice.shoppingyizhan.com/dic/code-table/2"}}}
                 */

                private CategoryBean category;

                public CategoryBean getCategory() {
                    return category;
                }

                public void setCategory(CategoryBean category) {
                    this.category = category;
                }

                public static class CategoryBean {
                    /**
                     * id : 16
                     * name : 休闲零2食
                     * shopType : 2
                     * platformId : 2
                     * platformInfo : http://microservice.shoppingyizhan.com/dic/code-table/2
                     * _embedded : {"childCategory":[]}
                     * links : {"self":{"href":"http://microservice.shoppingyizhan.com/gds/goods-categories/16"},"platformInfo":{"href":"http://microservice.shoppingyizhan.com/dic/code-table/2"}}
                     */

                    private String id;
                    private String name;
                    private int shopType;
                    private int platformId;
                    private String platformInfo;
                    private LinksBean links;

                    public String getId() {
                        return id;
                    }

                    public void setId(String id) {
                        this.id = id;
                    }

                    public String getName() {
                        return name;
                    }

                    public void setName(String name) {
                        this.name = name;
                    }

                    public int getShopType() {
                        return shopType;
                    }

                    public void setShopType(int shopType) {
                        this.shopType = shopType;
                    }

                    public int getPlatformId() {
                        return platformId;
                    }

                    public void setPlatformId(int platformId) {
                        this.platformId = platformId;
                    }

                    public String getPlatformInfo() {
                        return platformInfo;
                    }

                    public void setPlatformInfo(String platformInfo) {
                        this.platformInfo = platformInfo;
                    }

                    public LinksBean getLinks() {
                        return links;
                    }

                    public void setLinks(LinksBean links) {
                        this.links = links;
                    }


                    public static class LinksBean {
                        /**
                         * self : {"href":"http://microservice.shoppingyizhan.com/gds/goods-categories/16"}
                         * platformInfo : {"href":"http://microservice.shoppingyizhan.com/dic/code-table/2"}
                         */

                        private SelfBean self;
                        private PlatformInfoBean platformInfo;

                        public SelfBean getSelf() {
                            return self;
                        }

                        public void setSelf(SelfBean self) {
                            this.self = self;
                        }

                        public PlatformInfoBean getPlatformInfo() {
                            return platformInfo;
                        }

                        public void setPlatformInfo(PlatformInfoBean platformInfo) {
                            this.platformInfo = platformInfo;
                        }

                        public static class SelfBean {
                            /**
                             * href : http://microservice.shoppingyizhan.com/gds/goods-categories/16
                             */

                            private String href;

                            public String getHref() {
                                return href;
                            }

                            public void setHref(String href) {
                                this.href = href;
                            }
                        }

                        public static class PlatformInfoBean {
                            /**
                             * href : http://microservice.shoppingyizhan.com/dic/code-table/2
                             */

                            private String href;

                            public String getHref() {
                                return href;
                            }

                            public void setHref(String href) {
                                this.href = href;
                            }
                        }
                    }
                }
            }

            public static class LinksBeanX {
                /**
                 * self : {"href":"http://microservice.shoppingyizhan.com/gds/goods-sqrs/15"}
                 * content : {"href":"http://microservice.shoppingyizhan.com/gds/goods/content/15"}
                 * shopInfo : {"href":"http://api.shoppingyizhan.com/shp/shops/79"}
                 */

                private SelfBeanX self;
                private ContentBean content;
                private ShopInfoBean shopInfo;

                public SelfBeanX getSelf() {
                    return self;
                }

                public void setSelf(SelfBeanX self) {
                    this.self = self;
                }

                public ContentBean getContent() {
                    return content;
                }

                public void setContent(ContentBean content) {
                    this.content = content;
                }

                public ShopInfoBean getShopInfo() {
                    return shopInfo;
                }

                public void setShopInfo(ShopInfoBean shopInfo) {
                    this.shopInfo = shopInfo;
                }

                public static class SelfBeanX {
                    /**
                     * href : http://microservice.shoppingyizhan.com/gds/goods-sqrs/15
                     */

                    private String href;

                    public String getHref() {
                        return href;
                    }

                    public void setHref(String href) {
                        this.href = href;
                    }
                }

                public static class ContentBean {
                    /**
                     * href : http://microservice.shoppingyizhan.com/gds/goods/content/15
                     */

                    private String href;

                    public String getHref() {
                        return href;
                    }

                    public void setHref(String href) {
                        this.href = href;
                    }
                }

                public static class ShopInfoBean {
                    /**
                     * href : http://api.shoppingyizhan.com/shp/shops/79
                     */

                    private String href;

                    public String getHref() {
                        return href;
                    }

                    public void setHref(String href) {
                        this.href = href;
                    }
                }
            }

            public static class SkuPropertiesBean {
                /**
                 * id : 12
                 * status : null
                 * version : 0
                 * createTime : 2018-06-20 14:55:00
                 * updateTime : 2018-06-20 14:55:00
                 * name : 重量
                 * propertyValues : [{"id":17,"status":null,"version":0,"createTime":"2018-06-20 14:55:00","updateTime":"2018-06-20 14:55:00","propertyValue":"1kg"}]
                 * sort : 0
                 */

                private String id;
                private String status;
                private int version;
                private String createTime;
                private String updateTime;
                private String name;
                private int sort;
                private List<PropertyValuesBean> propertyValues;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getStatus() {
                    return status;
                }

                public void setStatus(String status) {
                    this.status = status;
                }

                public int getVersion() {
                    return version;
                }

                public void setVersion(int version) {
                    this.version = version;
                }

                public String getCreateTime() {
                    return createTime;
                }

                public void setCreateTime(String createTime) {
                    this.createTime = createTime;
                }

                public String getUpdateTime() {
                    return updateTime;
                }

                public void setUpdateTime(String updateTime) {
                    this.updateTime = updateTime;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public int getSort() {
                    return sort;
                }

                public void setSort(int sort) {
                    this.sort = sort;
                }

                public List<PropertyValuesBean> getPropertyValues() {
                    return propertyValues;
                }

                public void setPropertyValues(List<PropertyValuesBean> propertyValues) {
                    this.propertyValues = propertyValues;
                }

                public static class PropertyValuesBean {
                    /**
                     * id : 17
                     * status : null
                     * version : 0
                     * createTime : 2018-06-20 14:55:00
                     * updateTime : 2018-06-20 14:55:00
                     * propertyValue : 1kg
                     */

                    private String id;
                    private String status;
                    private int version;
                    private String createTime;
                    private String updateTime;
                    private String propertyValue;

                    public String getId() {
                        return id;
                    }

                    public void setId(String id) {
                        this.id = id;
                    }

                    public String getStatus() {
                        return status;
                    }

                    public void setStatus(String status) {
                        this.status = status;
                    }

                    public int getVersion() {
                        return version;
                    }

                    public void setVersion(int version) {
                        this.version = version;
                    }

                    public String getCreateTime() {
                        return createTime;
                    }

                    public void setCreateTime(String createTime) {
                        this.createTime = createTime;
                    }

                    public String getUpdateTime() {
                        return updateTime;
                    }

                    public void setUpdateTime(String updateTime) {
                        this.updateTime = updateTime;
                    }

                    public String getPropertyValue() {
                        return propertyValue;
                    }

                    public void setPropertyValue(String propertyValue) {
                        this.propertyValue = propertyValue;
                    }
                }
            }

            public static class SkuInfosBean {
                /**
                 * id : 17
                 * status : null
                 * version : 1
                 * createTime : 2018-06-20 14:55:00
                 * updateTime : 2018-06-20 14:55:05
                 * price : 33
                 * discountPrice : 22
                 * stock : 111
                 * charges : 2
                 * code : null
                 * spStr : 重量|1kg
                 * spidStr : 12|17
                 * catNum : 0
                 */

                private String id;
                private String status;
                private int version;
                private String createTime;
                private String updateTime;
                private String price;
                private String discountPrice;
                private int stock;
                private int charges;
                private String code;
                private String spStr;
                private String spidStr;
                private int catNum;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getStatus() {
                    return status;
                }

                public void setStatus(String status) {
                    this.status = status;
                }

                public int getVersion() {
                    return version;
                }

                public void setVersion(int version) {
                    this.version = version;
                }

                public String getCreateTime() {
                    return createTime;
                }

                public void setCreateTime(String createTime) {
                    this.createTime = createTime;
                }

                public String getUpdateTime() {
                    return updateTime;
                }

                public void setUpdateTime(String updateTime) {
                    this.updateTime = updateTime;
                }

                public String getPrice() {
                    return price;
                }

                public void setPrice(String price) {
                    this.price = price;
                }

                public String getDiscountPrice() {
                    return discountPrice;
                }

                public void setDiscountPrice(String discountPrice) {
                    this.discountPrice = discountPrice;
                }

                public int getStock() {
                    return stock;
                }

                public void setStock(int stock) {
                    this.stock = stock;
                }

                public int getCharges() {
                    return charges;
                }

                public void setCharges(int charges) {
                    this.charges = charges;
                }

                public String getCode() {
                    return code;
                }

                public void setCode(String code) {
                    this.code = code;
                }

                public String getSpStr() {
                    return spStr;
                }

                public void setSpStr(String spStr) {
                    this.spStr = spStr;
                }

                public String getSpidStr() {
                    return spidStr;
                }

                public void setSpidStr(String spidStr) {
                    this.spidStr = spidStr;
                }

                public int getCatNum() {
                    return catNum;
                }

                public void setCatNum(int catNum) {
                    this.catNum = catNum;
                }
            }
        }
    }
}
